import request from '@/utils/request'

export default {
  databaseNames(connName) { return request.get('/mongo/databaseNames', { params: { connName }}) },
  collectionNames(connName, databaseName) { return request.get(`/mongo/collectionNames/${databaseName}`, { params: { connName }}) },
  queryPage(connName, databaseName, collectionName, page) { return request.get('/mongo/queryPage', { params: { connName, databaseName, collectionName, ...page }}) }
}
